



def add(x,y):
    return lambda a,b:a+b
def make_incrementor(n):
    return lambda x: x+n
def queue():
    arr = []
    arr.append(1)
    arr.append(2)
    arr.append(3)
    arr.reverse()
    return arr

def passTest():
    pass

def parrot(voltage, state='a stiff', action='voom', type='Norwegian Blue'):
    print("-- This parrot wouldn't", action, end=' ')
    print("if you put", voltage, "volts through it.")
    print("-- Lovely plumage, the", type)
    print("-- It's", state, "!")

def cheeseshop(kind, *arguments, **keywords):
    print("-- Do you have any", kind, "?")
    print("-- I'm sorry, we're all out of", kind)
    for arg in arguments:
        print(arg)
    print("-" * 40)
    for kw in keywords:
        print(kw, ":", keywords[kw])

if __name__ == '__main__':
    dir()
    a = make_incrementor(10)
    print(a(1))
#     print(add(2, 3))
#     print(queue())
#     print(passTest())
#     parrot(1000)  # 1 positional argument
#     parrot(voltage=1000)  # 1 keyword argument
#     parrot(voltage=1000000, action='VOOOOOM')  # 2 keyword arguments
#     parrot(action='VOOOOOM', voltage=1000000)  # 2 keyword arguments
#     parrot('a million', 'bereft of life', 'jump')  # 3 positional arguments
#     parrot('a thousand', state='pushing up the daisies')  # 1 positional, 1 keyword
    cheeseshop("Limburger", "It's very runny, sir.",
           "It's really very, VERY runny, sir.",
           shopkeeper="Michael Palin",
           client="John Cleese",
           sketch="Cheese Shop Sketch",
               test="test")

